import request from "@/utils/request";

// 获取搜索建议
export const getSearchSuggestionApi = (params) => {
  return request({
    url: "/v1_0/suggestion",
    // params:params
    params,
  });
};
// getSearchSuggestionApi({ q:输入框内容 })

// 获取搜索结果
export const getSearchResultApi = (params) => {
  return request({
    url: "/v1_0/search",
    params,
  });
};
